package apIExercise.io.io2;

import java.io.*;

public class OOSDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis=new FileInputStream("data.obj");
        ObjectInputStream oos=new ObjectInputStream(fis);
        Object obj=oos.readObject();
        Student af=(Student) obj;
        System.out.println(af);
        oos.close();
    }
}
